import React, {Component} from 'react';
import { Tabs } from 'antd';
import AllRecord from "./component/allRecord";
import EntityRecord from "./component/entityRecord";
import MergeRecord from "./component/mergeRecord";
class Index extends Component {
    render() {
        return (
            <div className='p-layout-box'>
                <Tabs
                    destroyInactiveTabPane={true}
                    defaultActiveKey="1"
                    items={[
                        {
                            label: `全部记录`,
                            key: '1',
                            children: <AllRecord />,
                        },
                        {
                            label: `实物记录`,
                            key: '2',
                            children: <EntityRecord />,
                        },
                        {
                            label: `已合并订单`,
                            key: '3',
                            children: <MergeRecord history={this.props.history}/>,
                        },
                    ]}
                />
            </div>
        );
    }
}

export default Index;
